home *** CD-ROM | disk | FTP | other *** search
/ Interactive CD-ROM & Web Magazine 6 / Interactive CD-ROM & Web Magazine 6.iso / pc / immsetup / bin / wizard.dir / 00010.ls < prev    next >
Encoding:
Text File  |  1996-04-05  |  3.3 KB  |  129 lines

  1. global netObj, iswin95, lingoIni, cd, standalone, tobeonline, sockautolog
  2.  
  3. on startMovie
  4.   set lingoIni to "on startup" & RETURN
  5.   set lingoIni to lingoIni & "  global cd, sockAutolog, toBeOnline" & RETURN
  6.   set lingoIni to lingoIni & "  openXlib  the pathname &  " & numToChar(34) & "netscdde.dll" & numToChar(34) & RETURN
  7.   set lingoIni to lingoIni & "  openXlib  the pathname &  " & numToChar(34) & "fileio.dll" & numToChar(34) & RETURN
  8.   set lingoIni to lingoIni & "  set cd = " & numToChar(34) & char 1 of cd & numToChar(34) & RETURN
  9.   if not netObj then
  10.     set netObj to Netscdde(mnew, "%!)┬ú$$/")
  11.   end if
  12.   set winVer to netObj(mGetWinVersion)
  13.   if value(winVer) > 3.20000000000000018 then
  14.     set iswin95 to 1
  15.   else
  16.     set iswin95 to 0
  17.   end if
  18.   set iswin95 to 1
  19.   set the hilite of cast "autolog" to 1
  20.   set the checkBoxAccess to 0
  21.   set tobeonline to 1
  22. end
  23.  
  24. on idle
  25.   if iswin95 then
  26.     windows95()
  27.   else
  28.     wind()
  29.   end if
  30. end
  31.  
  32. on windows95
  33.   if not (the hilite of cast "modem") then
  34.     resetWin95()
  35.   end if
  36.   if the hilite of cast "modem" and not (the hilite of cast "internet") then
  37.     go("Bwin")
  38.   end if
  39.   if the hilite of cast "modem" and the hilite of cast "internet" then
  40.     go("Cwin")
  41.   end if
  42. end
  43.  
  44. on resetWin95
  45.   go("win95")
  46.   set the hilite of cast "internet" to 0
  47.   set the hilite of cast "modem" to 0
  48. end
  49.  
  50. on wind
  51.   if not (the hilite of cast "modem") then
  52.     ResetWin()
  53.   end if
  54.   if the hilite of cast "modem" and not (the hilite of cast "internet") then
  55.     go("B")
  56.   end if
  57.   if the hilite of cast "modem" and the hilite of cast "internet" then
  58.     go("C")
  59.   end if
  60. end
  61.  
  62. on ResetWin
  63.   go("a")
  64.   set the hilite of cast "internet" to 0
  65.   set the hilite of cast "modem" to 0
  66.   set the hilite of cast "autolog" to 1
  67.   set the hilite of cast "manlog" to 0
  68. end
  69.  
  70. on suoppatasto spriteNum, castDown, handler
  71.   set flegghino to 0
  72.   set SaveCast to the castNum of sprite spriteNum
  73.   set flegghino to suicciacast(spriteNum, SaveCast, castDown)
  74.   repeat while the stillDown
  75.     set flegghino to suicciacast(spriteNum, SaveCast, castDown, flegghino)
  76.   end repeat
  77.   set the castNum of sprite spriteNum to SaveCast
  78.   puppetSprite(spriteNum, 0)
  79.   if flegghino = 1 then
  80.     do(handler)
  81.   end if
  82. end
  83.  
  84. on suicciacast spriteNum, SaveCast, castDown
  85.   if rollOver(spriteNum) then
  86.     set the castNum of sprite spriteNum to castDown
  87.     updateStage()
  88.     return 1
  89.   else
  90.     set the castNum of sprite spriteNum to SaveCast
  91.     updateStage()
  92.     return 0
  93.   end if
  94. end
  95.  
  96. on Reject
  97.   alert("Hai scelto di non andare ''online'' ma se cambi idea puoi riconfigurare Denise lanciando WIZARD.EXE")
  98.   set tobeonline to 0
  99.   set sockautolog to 0
  100.   set lingoIni to lingoIni & "  set toBeOnline = 0" & RETURN
  101.   set lingoIni to lingoIni & "  set sockAutolog = 0" & RETURN
  102.   set lingoIni to lingoIni & "end startup"
  103.   QuitApplication()
  104. end
  105.  
  106. on SaveConfig
  107.   set tobeonline to 1
  108.   set sockautolog to the hilite of cast "autolog"
  109.   set lingoIni to lingoIni & "  set toBeOnline = 1" & RETURN
  110.   set lingoIni to lingoIni & "  set sockAutolog = " & the hilite of cast "autolog" & RETURN
  111.   set lingoIni to lingoIni & "end startup"
  112.   QuitApplication()
  113. end
  114.  
  115. on QuitApplication
  116.   WriteLingoIni()
  117.   if not standalone then
  118.     go(1, cd & "\IMM\home")
  119.   else
  120.     quit()
  121.   end if
  122. end
  123.  
  124. on WriteLingoIni
  125.   set theLingo to FileIO(mnew, "write", the pathName & "lingo.ini")
  126.   put theLingo(mWriteString, lingoIni)
  127.   put theLingo(mdispose)
  128. end
  129.